package com.s3.khospitalds.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.s3.khospitalds.entity.Drugs;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xw
 * @CreateTime: 2025/2/26
 * @Description: 药品信息表
 * @Version: 1.0
 */
@Service
public interface DrugsService extends IService<Drugs> {
    public List<Drugs> getDrugs();
    public List<Drugs> getDrugsW();
    public List<Drugs> getDrugsByTypeLike(String type);
    public List<Drugs> getDrugsByTypeLikeW(String type);

    public List<Drugs> getDrugsByDrugNameLike(String drugname);

    public int insertDrugs(Drugs drugs);
    public List<Drugs> getDrugsByQuantity();


    public int insertDrugsW(Drugs drugs);
    public List<Drugs> getDrugsByQuantityW();

    public int updateDrugsQuantity(Drugs drugs);
    public int updateDrugs(String drugname,int quantity);
    public int updateDrugsW(String drugname,int quantity);
}
